package com.qf.cloud2204.sleuth.controller;

import com.qf.cloud2204.sleuth.feignclient.MircoAClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/s")
@Slf4j
public class SleuthController {

    @Autowired
    MircoAClient microAClient;

    @GetMapping("/test1")
    public String test1(){

        log.debug("开始处理请求:/test1，调用A微服务");
        String hello = microAClient.hello();
        log.debug("调用A的结果为:"+hello);

        return hello;
    }

}
